﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Home/Home.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace="Heritage.Codebox" %>
<%@ Import Namespace="Heritage.Models" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

<div class="mainname" style="margin-bottom:10px;">
    <div style="float:left;padding-top:12px;"><span class="FreeSetBold" style=" padding-left: 30px; padding-bottom: 0px; margin-top:0px; color:#0E1A21;font-size:20px;">Игры, доступные для записи</span></div>
</div>

   <% foreach (Heritage.Games g in Utils.GetAvailableGames()) {  %>
       <div class="gamename"><%=g.GameName %></div>
       <div class="gamedesc">
       <div style="display:table-row;">
       <div style="display:table-cell; width:100%; padding-right:16px;"><b><%=Utils.GetGameConditions(g) %></b><br /><i><%=g.GameDescription %></i></div>
       <div class="g_links"><b><%=GameSchedule.FromGameString(g.GameSchedule).Description(true) %></b></div>
       <div class="g_links"><a href="/Game/WhoJoined/<%=g.GameName %>"><%=Utils.GetPlayersCount(g.GameName) %>/<%=g.Players %></a></div>
       <div class="g_links"><%=Utils.GetLinks(g) %></div>
       </div>
       </div>
       <br />
   <% } %>
</asp:Content>
